cmake_minimum_required(VERSION 2.8.3)
project(depth_cluster_ros)
## Compile as C++11, supported in ROS Kinetic and newer
 add_compile_options(-std=c++14)

###########
## Build ##
###########
find_package(catkin REQUIRED COMPONENTS
  roscpp
  rospy
  std_msgs
  tf
  pcl_ros
)

find_package(PCL 1.10 REQUIRED COMPONENTS
  common
  segmentation
  features
  filters
  io
  visualization
)

find_package(Eigen3 REQUIRED)

catkin_package(
  CATKIN_DEPENDS
  roscpp
  std_msgs
)

# set(Eigen_INCLUDE_DIRS "usr/include/eigen3")
include_directories(
        ${PCL_INCLUDE_DIRS}
        ${Eigen_INCLUDE_DIRS}
        ${catkin_INCLUDE_DIRS}
)

## Specify additional locations of header files
## Your package locations should be listed before other locations
include_directories(
 include
)

## Declare a C++ library
# add_library(pose_curve
#   include/pose_curve.cpp
# )

add_library(depth_cluster include/depth_cluster.cpp)
target_link_libraries(depth_cluster  ${PCL_LIBRARIES})

add_executable(depth_cluster_node src/main.cpp)
target_link_libraries(depth_cluster_node depth_cluster ${catkin_LIBRARIES})

